package io.renren.modules.user.dao;

import io.renren.modules.user.entity.UserinfosEntity;
import io.renren.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 用户表
 * 
 * @author ÑîË§
 * @email 
 * @date 2018-10-18 15:06:56
 */
@Mapper
public interface UserinfosDao extends BaseDao<UserinfosEntity> {
    //查询简单用户
    List<UserinfosEntity> queryDescList(Map<String, Object> map);
    //查询简单用户总数
    int queryDescTotal(Map<String, Object> map);

    //上传头像
    int uploadIcon(Map<String, Object> map);

    int isUserAccountRepetition(String userAccount);

    List<UserinfosEntity> queryUserByName(Map<String, Object> map);

    int queryUserByNameTotal(Map<String, Object> map);

    int isLockUser(String userinfoid);

    int isUserIdExist(String userinfoid);

    UserinfosEntity login(String userAccount);

    UserinfosEntity queryUserinfo(String userinfoid);

    UserinfosEntity queryUserByAccount(String userAccount);

    void updateApiUser(UserinfosEntity entity);

    UserinfosEntity queryPasswordInfo(String userinfoid);

    UserinfosEntity queryApiIntegralNumber(String userinfoid);
}
